dxp-ux

(0 reviews)

GET - loyaltyAccount -TMF658

GET: /loyaltyAccount/{id}

This operation retrieves a loyaltyAccount entity.

URL
https://[localhost]:[port]/dxp-ux/v1/{businessId}/loyaltyAccount/{id}
URL PARAMS
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, PR etc.) identifying the business unit. Expected one for Peacock Mobile project is : "PR"-Puerto RicoY
idstringUnique identifier like MSISDN OR Service Number OR Account NumberY
nametypedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.Y (for business)
Data Model - Response
field nametypedescriptionrequired (mandatory-Y, optional-N, Not applicable- N/A)
idstringUnique identifier for the loyalty program member.N(PA), Y(LC)
namestringThe loyalty members name.Y(PA), Y(LC)
statestringContains the lifecycle state such as: Active, Closed, Suspended and so on.N/A(PA, LC- Evolving), Y(LC - Ceriilion)
accountBalance[]arrayBalances linked to the accountN(PA), Y(LC)
accountBalance[].balanceTypestringType of the balance : deposit balance, disputed balance, loyalty balance, receivable balance...Y(PA), Y(LC)
accountBalance[].amountobjectA base / value business entity used to represent moneyY(PA), Y(LC)
accountBalance[].amount.unitstringLoyalty pointsN(PA), Y(LC)
accountBalance[].amount.valueNumberA signed floating point numberN(PA), Y(LC)
accountBalance[].validForobjectA period of time, either as a deadlineY(PA), Y(LC)
accountBalance[].validFor.endDateTimedatetimeEnd of the time periodN(PA), N/A(LC)
accountBalance[].validFor.startDateTimedatetimeStart of the time periodN(PA), N(LC)
characteristic[]arrayAdditional loyalty attributes of the member.N/A(PA, LC- Cerillion), Y(LC - Evolving)
characteristic[].namestringName of characteristicN/A(PA, LC- Cerillion), Y(LC - Evolving)
characteristic[].valuestringValue of characteristicN/A(PA, LC- Cerillion), Y(LC - Evolving)
accountBalance[] subResource - dataModel
balanceTypetypedescriptionrequired (mandatory-Y, optional-N, Not applicable- N/A)examples
loyaltyPointBillAvailablestringTotal loyalty points currently available from the billing cycle.Y(LC- Cerillion), N/A(LC- Evolving)LC: { "balanceType": "loyaltyPointBillAvailable", "amount": { "unit": "POINTS", "value": 0 }, "validFor": { "startDateTime": "2023-03-01T00:00:00-05:00" } }
loyaltyPointBillEarnedstringLoyalty points earned in the current billing cycle.Y(LC- Cerillion), N/A(LC- Evolving)LC: { "balanceType": "loyaltyPointBillEarned", "amount": { "unit": "POINTS", "value": 0 } }
loyaltyPointBillExpiredstringLoyalty points that expired in the current or previous billing period.Y(LC- Cerillion), N/A(LC- Evolving)LC: { "balanceType": "loyaltyPointBillExpired", "amount": { "unit": "POINTS", "value": 0 } }
loyaltyPointBillPreviousstringLoyalty points carried over from the previous billing cycle.Y(LC- Cerillion), N/A(LC- Evolving)LC: { "balanceType": "loyaltyPointBillPrevious", "amount": { "unit": "POINTS", "value": 0 } }
loyaltyPointBillSpentPrevstringLoyalty points spent in the previous billing cycle.Y(LC- Cerillion), N/A(LC- Evolving)LC: { "balanceType": "loyaltyPointBillSpentPrev", "amount": { "unit": "POINTS", "value": 0 } }
loyaltyPointBillTotalstringTotal accumulated loyalty points for the billing cycle.Y(LC- Cerillion), N/A(LC- Evolving)LC:{ "balanceType": "loyaltyPointBillTotal", "amount": { "unit": "POINTS", "value": 0 }, "validFor": { "startDateTime": "2023-03-01T00:00:00-05:00" } }
loyaltyPointBillWillExpirestringLoyalty points scheduled to expire in the upcoming period.Y(LC- Cerillion), N/A(LC- Evolving)LC: { "balanceType": "loyaltyPointBillWillExpire", "amount": { "unit": "POINTS", "value": 0 } }
loyaltyPointNowAvailablestringCurrent loyalty points available for immediate use.Y(LC- Cerillion), N/A(LC- Evolving)LC: { "balanceType": "loyaltyPointNowAvailable", "amount": { "unit": "POINTS", "value": 0 } }
loyaltyPointNowAwardedstringLoyalty points awarded most recentlyY(LC- Cerillion), N/A(LC- Evolving)LC: { "balanceType": "loyaltyPointNowAwarded", "amount": { "unit": "POINTS", "value": 0 } }
loyaltyPointNowSpentstringLoyalty points spent most recentlyY(LC- Cerillion), N/A(LC- Evolving)LC: { "balanceType": "loyaltyPointNowSpent", "amount": { "unit": "POINTS", "value": 0 } }
pointsBalancestringCurrent balance of usable loyalty points for the customer.Y(LC- Evolving), N/A(LC- Cerillion)LC: { "balanceType": "pointsBalance", "amount": { "value": 10, "unit": "POINTS" }, "validFor": { "startDateTime": "2023-03-01T00:00:00-05:00" } }
lowCoreBalancestringLow threshold monetary or prepaid balance available in the customer accountY(LC- Evolving), N/A(LC- Cerillion)LC: { "balanceType": "lowCoreBalance", "amount": { "value": 350, "unit": "JMD" }, "validFor": { "startDateTime": "2023-03-01T00:00:00-05:00" } }
nextClassPointsThresholdstringLoyalty points required to reach the next loyalty class/tier.Y(LC- Evolving), N/A(LC- Cerillion)LC: { "balanceType": "nextClassPointsThreshold", "amount": { "value": 25, "unit": "POINTS" }, "validFor": { "startDateTime": "2023-03-01T00:00:00-05:00" } }
characteristic[] subResource - dataModel
nametypedescriptionrequired (mandatory-Y, optional-N, Not applicable- N/A)examples
loyaltyClassstringIndicates the customer’s current loyalty tier, determined based on their accumulated loyalty points.Y(LC- Evolving), N/A(LC- Cerillion)LC: { "name": "loyaltyClass", "value": "Beginner" }
nextLoyaltyClassstringRepresents the next loyalty tier the customer can achieve after meeting the required points threshold.Y(LC- Evolving), N/A(LC- Cerillion)LC: { "name": "nextLoyaltyClass", "value": "Bronze" }
Key considerations
PA Implementation(Mynehub system):
  1. This API is implemented for PA Prepaid.
  2. The loan offer will be generated according Loyalty Point
PointLevel PointsLevel Description
Beginner24Beginner 0-24
Bronze49Bronze 25-49
Silver74Silver 50-74
Gold99Gold 75-99
Diamond1000Diamond>=100
LC Implementation :

Cerillion System:

  1. This use case is used to retrieve the loyalty points of POSTPAID customers for a given accountNumber from the Cerillion system.
  2. This is implemented for following businessIds: AG, BB, GD, JM, LC, VC, TT, CW.
  3. The "id" value passed in the uriParam must be the accountNumber.
  4. If the user is a loyalty member, the state is set to "Active" else "Inactive".
  5. When the state is Inactive, the user is not a loyalty member, and loyalty balances are not applicable.
  6. If the dates are not retrieved from backend the default date will be displayed in the response under accountBalance[].validFor.startDateTime i.e."9999-01-01T00:00:00.00-05:00"

Evolving System:

  1. This use case is used to retrieve the loyalty points of PREPAID customers for a given MSISDN from the Evolving system.
  2. This is implemented for following businessIds: AI, AG, BB, VG, KY, DM, GD, JM, MS, KN, LC, VC, TC, CW.
  3. The "id" value passed in the uriParam must be the MSISDN and should be sent with BU code and country code.
  4. characteristic[].value where characteristic[].name= "loyaltyClass" defines current loyalty tier or level the customer belongs to based on the customer's accumulated loyalty points.
  5. If the dates are not retrieved from backend the default date will be displayed in the response under accountBalance[].validFor.startDateTime i.e."9999-01-01T00:00:00.00-05:00"

Reviews